package com.fmy.mcsecurity.integration;

import com.fmy.mcsecurity.token.model.SecurityToken;
import org.springframework.security.core.Authentication;

import java.util.Map;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName TypeDefultIntegration
 * @Description TODO 默认登录方式处理--默认为密码登录
 * @createTime 2019/12/9 17:48
 */
public class TypeDefultIntegration implements TypeIntegration {
    @Override
    public boolean support(String type) {
        return "password".equals(type);
    }

    @Override
    public void before(Map<String, Object> params) {

    }

    @Override
    public void complete(Authentication authentication, SecurityToken token) {

    }
}
